package com.kingsoft.gtdsys.dao;

import com.kingsoft.gtdsys.dao.impl.sqllite.*;

public class DAOFactory {
	private static IStuffDAO stuffDAO = null;
	private static ITrashDAO trashDAO = null;
	private static IReferenceDAO referenceDAO = null;
	private static IMaybeDAO maybeDAO = null;
	private static IActionDAO actionDAO = null;
	private static IWaitingDAO waitingDAO = null;
	
	public static IStuffDAO getStuffDAO() {
		if (stuffDAO == null) {
			stuffDAO = new StuffDAO();
		}
		return stuffDAO;
	}
	
	public static ITrashDAO getTrashDAO() {
		if (trashDAO == null) {
			trashDAO = new TrashDAO();
		}
		return trashDAO;
	}
	
	public static IReferenceDAO getReferenceDAO() {
		if (referenceDAO == null) {
			referenceDAO = new ReferenceDAO();
		}
		return referenceDAO;
	}
	
	public static IMaybeDAO getMaybeDAO() {
		if (maybeDAO == null) {
			maybeDAO = new MaybeDAO();
		}
		return maybeDAO;
	}
	
	public static IActionDAO getActionDAO() {
		if (actionDAO == null) {
			actionDAO = new ActionDAO();
		}
		return actionDAO;
	}
	
	public static IWaitingDAO getWaitingDAO() {
		if (waitingDAO == null) {
			waitingDAO = new WaitingDAO();
		}
		return waitingDAO;
	}
	
}
